import request from '@/utils/request'
/**
 * 写入强制信号
 * @param { String } forceOrder 信号下标
 * @param { Boolean } value 信号值
 * @returns 
 */
export function forceSignal(path, params) {
  return request({
    url: 'device/status/edit/' + path,
    method: 'post',
    params,
  })
}
/**
 * 获取强制信号列表
 * @returns 
 */
export function getSignalList() {
  return request({
    url: '/device/status/list',
    method: 'get',
  })
}
/**
 * 发送相机Tcp命令
 * @returns 
 */
export function sendCameraText(data) {
  return request({
    url: '/device/status/send/code/info',
    method: 'post',
    params: {data}
  })
}

/**
 * 发送机器人Tcp命令
 * @returns 
 */
export function sendRobotText(data) {
  return request({
    url: '/device/status/send/manipulator/info',
    method: 'post',
    params: {data}
  })
}